<?php

namespace app\index\controller;

class CustomerFollowBase
{
    public function create()
    {
        $param = request()->param();

        $model = \app\model\CustomerFollow::create($param);

        if (!$model) {
            return json(['code' => 40400, 'msg' => '新增失败']);
        }

        return json(['code' => 20000, 'msg' => '新增成功', 'data' => ['customerFollow' => $model]]);
    }
}
